<?php
class Post extends AppModel{
	public $actsAs = array('Containable');
	public $hasMany = array('Comment');

	public function findAllCreatedPost($userId) {
		return $this->find('all',array(
			'conditions' => array('Post.user_id' => $userId),
			'fields' => 'created'
		));
	}
}